<?php
/*
Engineer: Derek Shue
Updated: 12/5/2011
Description: Allows updating information for profile

*/


 ?>

<?php
	$auth = Zend_Auth::getInstance(); 
	$utype = $auth->getIdentity()->getUserType();
?>
<?php if($utype == 'organization'):?> 
    <h3>Primary Contact:</h3>
	<?php if($this->contact):?>
	<?php echo $this->contact['LASTNAME'] . ", " . $this->contact['FIRSTNAME']; ?>
	<a target = "_blank" href="
	       		<?php echo $this->url(array('controller'=>'profile', 'action' => 'managecontacts'),'default',true);?>
	       		" >(Edit)</a>
	<?php endif;?>
	<?php if(!$this->contact || $this->contact == ""):?>
		No primary contact added. 
		<a target = "_blank" href="
		       		<?php echo $this->url(array('controller'=>'profile', 'action' => 'managecontacts'),'default',true);?>
		       		" >(Add)</a>
	<?php endif;?>
<?php endif;?>
<?php
$this->form->setAction($this->url());
echo $this->form;
?>
